<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3.7.jQuery常用API-jQuery操作样式-类操作与className区别</title>
    <script src="jquery.min.js"></script>
    <style>
        .one {
            width: 200px;
            height: 200px;
            background-color: pink;
        }

        .two {
            transform: rotate(700deg);
        }
    </style>
</head>

<body>
    <div class="one two"></div>
    <script>
        // var one = document.querySelector('.one');
        // one.className = "two"; // 覆盖了之前的 one
        $(function () {
            // $(".one").addClass("two"); // 在one 后面追加了 two
            $(".one").removeClass("one");
        })
    </script>
</body>

</html>